﻿using Domain.Entity;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EfCore.Configers
{
    public class SGDConfigers : IEntityTypeConfiguration<SGD>
    {
        public void Configure(EntityTypeBuilder<SGD> builder)
        {
            builder.ToTable(nameof(SGD));

            builder.HasKey(e => e.GrdId);

            builder.Property(e => e.GrdId).ValueGeneratedOnAdd();

            builder.Property(e => e.HumanName).HasMaxLength(50);
        }
    }
}
